<% content_for :css do %>
  <%= stylesheet_link_tag 'enterprises_edit' %>
<% end %>
<% content_for :title do %>企业基本资料<% end %>
<div class="grid_16 enterprise">
  <div class="grid_16 head alpha omega">
    <div class="grid_16 title">
      企业基本资料
    </div>          
    <div class="grid_16 line">
      <div class="grid_2">名称</div>
      <div class="grid_12"><%= @enterprise.name %></div>
    </div>
    <div class="grid_16 line">
      <div class="grid_2">管理员</div>
      <div class="grid_12">
        <%= @enterprise.admin.full_name %>
      </div>
    </div> 
  </div>
  <div class="grid_16 alpha body">  
    <div class="grid_16 line">
      <div class="grid_2">地址</div>
      <div class="grid_12">
        <%= @enterprise.address %>
      </div>
    </div>  
    <div class="grid_16 line">
      <div class="grid_2">联系电话</div>
      <div class="grid_12">
        <%= @enterprise.link_phone %>
      </div>
    </div> 
    <div class="grid_16 line">
      <div class="grid_2">传真</div>
      <div class="grid_12">
        <%= @enterprise.fax %>
      </div>
    </div> 
    <div class="grid_16 line">
      <div class="grid_2">电邮</div>
      <div class="grid_12">
        <%= @enterprise.email %>
      </div>
    </div> 
    <div class="grid_16 line">
      <div class="grid_2">地址</div>
      <div class="grid_12">
        <%= @enterprise.address %>
      </div>
    </div> 
    <div class="grid_16 line">
      <div class="grid_2">客服QQ</div>
      <div class="grid_12">
        <%= @enterprise.qq %>
      </div>
    </div> 
    <div class="grid_16 line">
      <div class="grid_2">简介</div>
      <div class="grid_12 synopsis">
        <%= @enterprise.synopsis %>
      </div>
    </div> 
  </div>
  <div class="grid_16 bottom">
    <div class="grid_10">
    <% if current_user.is_admin? %>
      <%= link_to "编辑该企业资料", edit_enterprise_url(@enterprise), :title => '编辑该企业资料', :class => :button %><small>或</small><%= link_to "返回首页", root_url, :title => '返回首页'   %>
    <% else %>
    <%= link_to "返回首页", root_url, :title => '返回首页', :class => :button %>
    <% end %>
    </div>
  </div>  
</div>